import requests

from common.get_header import get_header
from config import URL


# 用户信息
class YYuser(object):
    url = URL + 'user/getInfo'
    header = get_header()

    @classmethod
    def yy_userinfo(cls, ):
        resp = requests.get(url=cls.url, headers=cls.header)
        return resp


if __name__ == '__main__':
    res = YYuser.yy_userinfo()
    print(res.json())
